package com.tmeone.erpone.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tmeone.erpone.entity.TCargo;

import java.util.List;

public interface ITCargoService extends IService<TCargo> {
    //分页
    IPage<TCargo> getPageCargos(IPage<TCargo> page);

   /* //查询所有的货位
    List<TCargo> selectAllCargos();*/
    //根据id改变货位状态
    int updateCargoStatusById(String id,String status);

    //根据货架编号、货位编号和货位状态查询数据
    List<TCargo> selectByCargoNoAndShelvesIdAndStatus(String cargoNo,String shelvesId,String status);

    //根据货区id查询货架
    List<TCargo> selectByShelvesId(String shelvesId);
}
